<?php

use Drupal\shusy_point_product\Entity\ShusyPointProduct;
use Drupal\shusy_point_product\Entity\ShusyPointProductOrder;
use Drupal\shusy_point_product\Entity\ShusyPointProductStock;

function shusy_point_product_shusy_point_product_add_page() {
  $e = new ShusyPointProduct();
  module_load_include('inc', 'shusy_point_product', 'shusy_point_product.forms');
  return drupal_get_form('shusy_point_product_shusy_point_product_entity_form', $e, 'add');
}

function shusy_point_product_shusy_point_product_view_page(ShusyPointProduct $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_point_product_shusy_point_product_edit_page(ShusyPointProduct $e) {
  module_load_include('inc', 'shusy_point_product', 'shusy_point_product.forms');
  return drupal_get_form('shusy_point_product_shusy_point_product_entity_form', $e, 'edit');
}

function shusy_point_product_shusy_point_product_delete_page(ShusyPointProduct $e) {
  module_load_include('inc', 'shusy_point_product', 'shusy_point_product.forms');
  return drupal_get_form('shusy_point_product_shusy_point_product_delete_form', $e);
}

function shusy_point_product_shusy_point_product_order_add_page() {
  $e = new ShusyPointProductOrder();
  module_load_include('inc', 'shusy_point_product', 'shusy_point_product.forms');
  return drupal_get_form('shusy_point_product_shusy_point_product_order_entity_form', $e, 'add');
}

function shusy_point_product_shusy_point_product_order_view_page(ShusyPointProductOrder $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_point_product_shusy_point_product_order_edit_page(ShusyPointProductOrder $e) {
  module_load_include('inc', 'shusy_point_product', 'shusy_point_product.forms');
  return drupal_get_form('shusy_point_product_shusy_point_product_order_entity_form', $e, 'edit');
}

function shusy_point_product_shusy_point_product_order_delete_page(ShusyPointProductOrder $e) {
  module_load_include('inc', 'shusy_point_product', 'shusy_point_product.forms');
  return drupal_get_form('shusy_point_product_shusy_point_product_order_delete_form', $e);
}

function shusy_point_product_shusy_point_product_stock_add_page() {
  $e = new ShusyPointProductStock();
  module_load_include('inc', 'shusy_point_product', 'shusy_point_product.forms');
  return drupal_get_form('shusy_point_product_shusy_point_product_stock_entity_form', $e, 'add');
}

function shusy_point_product_shusy_point_product_stock_view_page(ShusyPointProductStock $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_point_product_shusy_point_product_stock_edit_page(ShusyPointProductStock $e) {
  module_load_include('inc', 'shusy_point_product', 'shusy_point_product.forms');
  return drupal_get_form('shusy_point_product_shusy_point_product_stock_entity_form', $e, 'edit');
}

function shusy_point_product_shusy_point_product_stock_delete_page(ShusyPointProductStock $e) {
  module_load_include('inc', 'shusy_point_product', 'shusy_point_product.forms');
  return drupal_get_form('shusy_point_product_shusy_point_product_stock_delete_form', $e);
}

